package com.assignwork.service;

import com.assignwork.dto.SafeLibrarySearchDTO;
import com.assignwork.dto.SafeLibrarySubmitDTO;
import com.assignwork.entity.SafeLibrary;
import com.assignwork.vo.SafeLibraryListVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;

import java.util.List;

/**
 * @ClassName ISafeLibraryService
 * @Description 安全知识库接口
 * @Author dujianyu
 * @Date 2023/12/24 16:13
 */
public interface ISafeLibraryService extends BaseService<SafeLibrary> {
    /**
     * 分页
     * @param dto 搜索条件
     * @param page 分页
     * @return IPage<SafeLibraryListVO>
     * @author dujianyu
     * @since 2023/12/24 16:23
     */
    IPage<SafeLibraryListVO> selectSafeLibraryPage(SafeLibrarySearchDTO dto, IPage<SafeLibraryListVO> page);

    /**
     * 列表
     * @param dto 搜索条件
     * @return List<SafeLibraryListVO>
     * @author dujianyu
     * @since 2023/12/24 16:26
     */
    List<SafeLibraryListVO> selectSafeLibraryList(SafeLibrarySearchDTO dto);

    /**
     * 新增或修改
     * @param dto 数据
     * @return boolean
     * @author dujianyu
     * @since 2023/12/24 16:27
     */
    boolean submitSafeLibrary(SafeLibrarySubmitDTO dto);
}
